Don't explictly construct a QString from a QString in GPX reader.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 25 Nov 2014 05:00:36 +0000 (05:00 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 25 Nov 2014 05:00:36 +0000 (05:00 +0000)
gpsbabel/gpx.cc

index 8e436ccf5f09b7ffcd8527b623fee20733a783d2..475b58a398240ffa56fa493c4278af6617c159fa 100644 (file)
@@ -945,10 +945,7 @@ gpx_end(const QString& el)
   case tt_cache_desc_long: {
     geocache_data* gc_data = wpt_tmp->AllocGCData();
     gc_data->desc_long.is_html = cache_descr_is_html;
-// FIXME: Forcing a premature conversion here saves 4% on GPX read times
-// on large PQs.  Once cdatastrp becomes  real QString this is just (minimal)
-// overhead.
-    gc_data->desc_long.utfstring = QString(cdatastr);
+    gc_data->desc_long.utfstring = cdatastr;
   }
   break;
   case tt_cache_desc_short: {